package cn.bonoon.kernel.web.components;

import cn.bonoon.kernel.descriptors.UIPropertyAccessor;
import cn.bonoon.kernel.web.annotations.components.AsDateBox;
import cn.bonoon.kernel.web.html.UIPropertyBuilder;
import cn.bonoon.kernel.web.html.form.ComponentPropertyParser;

public class DateBoxComponent extends UIComponent{

	public DateBoxComponent(ComponentPropertyParser property, UIPropertyAccessor accessor, AsDateBox asDateBox) { 
		super("bupdateinput", property, accessor);
	}
	
	public DateBoxComponent(ComponentPropertyParser property, UIPropertyAccessor accessor) { 
		super("bupdateinput", property, accessor);
	}
	
	@Override
	protected void initComponentAttribute(StringBuilder script, UIPropertyBuilder builder) {
		script.append(",editable:false");
	}
}
